//
//  SpeaksTableViewCell.m
//  YiXiProject
//
//  Created by iMac on 2019/8/10.
//  Copyright © 2019 iMac. All rights reserved.
//

#import "SpeaksTableViewCell.h"

@implementation SpeaksTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        _button = [UIButton buttonWithType:UIButtonTypeCustom];
        _button.frame = CGRectZero;
        _button.layer.cornerRadius = 10;
        _button.layer.masksToBounds = YES;
        _button.userInteractionEnabled = NO;
        [self.contentView addSubview:_button];
        
        _label = [[UILabel alloc]init];
        _label.font = HeiTiFont(16);
        _label.numberOfLines = 0;
        [_button addSubview:_label];
        _label.sd_layout.leftSpaceToView(_button, 10).topSpaceToView(_button, 0).rightSpaceToView(_button, 5).bottomSpaceToView(_button, 5);
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
